
<!DOCTYPE HTML>
<html lang="" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>1.7.1 客户端核心SDK · GitBook</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        
        
        
    
    <link rel="stylesheet" href="../../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="../1.7.2 社区版服务端/" />
    
    
    <link rel="prev" href="../" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="Type to search" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../../">
            
                <a href="../../">
            
                    
                    Introduction
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="../../1.1 产品介绍/">
            
                <a href="../../1.1 产品介绍/">
            
                    
                    1.1 产品介绍
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.1" data-path="../../1.1 产品介绍/1.1.1 商用社交版/">
            
                <a href="../../1.1 产品介绍/1.1.1 商用社交版/">
            
                    
                    1.1.1 商用社交版
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.2" data-path="../../1.1 产品介绍/1.1.2 商用客服版/">
            
                <a href="../../1.1 产品介绍/1.1.2 商用客服版/">
            
                    
                    1.1.2 商用客服版
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.3" data-path="../../1.1 产品介绍/1.1.3 社交版开发指南/">
            
                <a href="../../1.1 产品介绍/1.1.3 社交版开发指南/">
            
                    
                    1.1.3 社交版开发指南
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="../../1.2 试用与部署/">
            
                <a href="../../1.2 试用与部署/">
            
                    
                    1.2 试用与部署
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.1" data-path="../../1.2 试用与部署/1.2.1 社区版编译部署/">
            
                <a href="../../1.2 试用与部署/1.2.1 社区版编译部署/">
            
                    
                    1.2.1 社区版编译部署
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.2" data-path="../../1.2 试用与部署/1.2.2 社区版镜像部署/">
            
                <a href="../../1.2 试用与部署/1.2.2 社区版镜像部署/">
            
                    
                    1.2.2 社区版镜像部署
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.3" data-path="../../1.2 试用与部署/1.2.3 专业版镜像部署/">
            
                <a href="../../1.2 试用与部署/1.2.3 专业版镜像部署/">
            
                    
                    1.2.3 专业版镜像部署
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="../../1.3 编译工程/">
            
                <a href="../../1.3 编译工程/">
            
                    
                    1.3 编译工程
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.1" data-path="../../1.3 编译工程/1.3.1 编译社区版后端源码/">
            
                <a href="../../1.3 编译工程/1.3.1 编译社区版后端源码/">
            
                    
                    1.3.1 编译社区版后端源码
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.2" data-path="../../1.3 编译工程/1.3.2 编译Web客户端源码/">
            
                <a href="../../1.3 编译工程/1.3.2 编译Web客户端源码/">
            
                    
                    1.3.2 编译Web客户端源码
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.3" data-path="../../1.3 编译工程/1.3.3 编译移动客户端源码/">
            
                <a href="../../1.3 编译工程/1.3.3 编译移动客户端源码/">
            
                    
                    1.3.3 编译移动客户端源码
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.4" data-path="../../1.3 编译工程/1.3.4 编译微信小程序源码/">
            
                <a href="../../1.3 编译工程/1.3.4 编译微信小程序源码/">
            
                    
                    1.3.4 编译微信小程序源码
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.5" data-path="../../1.3 编译工程/1.3.5 编译E聊SDK源码/">
            
                <a href="../../1.3 编译工程/1.3.5 编译E聊SDK源码/">
            
                    
                    1.3.5 编译E聊SDK源码
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.5" data-path="../../1.4 系统架构/">
            
                <a href="../../1.4 系统架构/">
            
                    
                    1.4 系统架构
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6" data-path="../../1.5 基础知识/">
            
                <a href="../../1.5 基础知识/">
            
                    
                    1.5 基础知识
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.6.1" data-path="../../1.5 基础知识/1.5.1 软件特性/">
            
                <a href="../../1.5 基础知识/1.5.1 软件特性/">
            
                    
                    1.5.1 软件特性
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.2" data-path="../../1.5 基础知识/1.5.2 客户端核心SDK功能/">
            
                <a href="../../1.5 基础知识/1.5.2 客户端核心SDK功能/">
            
                    
                    1.5.2 客户端核心SDK功能
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.3" data-path="../../1.5 基础知识/1.5.3 用户/">
            
                <a href="../../1.5 基础知识/1.5.3 用户/">
            
                    
                    1.5.3 用户
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.4" data-path="../../1.5 基础知识/1.5.4 连接/">
            
                <a href="../../1.5 基础知识/1.5.4 连接/">
            
                    
                    1.5.4 连接
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.5" data-path="../../1.5 基础知识/1.5.5 会话/">
            
                <a href="../../1.5 基础知识/1.5.5 会话/">
            
                    
                    1.5.5 会话
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.6" data-path="../../1.5 基础知识/1.5.6 消息/">
            
                <a href="../../1.5 基础知识/1.5.6 消息/">
            
                    
                    1.5.6 消息
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.7" data-path="../../1.5 基础知识/1.5.7 消息载体/">
            
                <a href="../../1.5 基础知识/1.5.7 消息载体/">
            
                    
                    1.5.7 消息载体
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.8" data-path="../../1.5 基础知识/1.5.8 文件上传功能/">
            
                <a href="../../1.5 基础知识/1.5.8 文件上传功能/">
            
                    
                    1.5.8 文件上传功能
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.9" data-path="../../1.5 基础知识/1.5.9 离线消息/">
            
                <a href="../../1.5 基础知识/1.5.9 离线消息/">
            
                    
                    1.5.9 离线消息
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.10" data-path="../../1.5 基础知识/1.5.10 群组/">
            
                <a href="../../1.5 基础知识/1.5.10 群组/">
            
                    
                    1.5.10 群组
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.11" data-path="../../1.5 基础知识/1.5.11 自定义消息/">
            
                <a href="../../1.5 基础知识/1.5.11 自定义消息/">
            
                    
                    1.5.11 自定义消息
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.7" data-path="../../1.6 服务端知识/">
            
                <a href="../../1.6 服务端知识/">
            
                    
                    1.6 服务端知识
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.7.1" data-path="../../1.6 服务端知识/1.6.1 服务器端口说明/">
            
                <a href="../../1.6 服务端知识/1.6.1 服务器端口说明/">
            
                    
                    1.6.1 服务器端口说明
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.2" data-path="../../1.6 服务端知识/1.6.2 数据库配置/">
            
                <a href="../../1.6 服务端知识/1.6.2 数据库配置/">
            
                    
                    1.6.2 数据库配置
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.3" data-path="../../1.6 服务端知识/1.6.3 机器内存的选择/">
            
                <a href="../../1.6 服务端知识/1.6.3 机器内存的选择/">
            
                    
                    1.6.3 机器内存的选择
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.4" data-path="../../1.6 服务端知识/1.6.4 性能测试/">
            
                <a href="../../1.6 服务端知识/1.6.4 性能测试/">
            
                    
                    1.6.4 性能测试
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.5" data-path="../../1.6 服务端知识/1.6.5 服务器配置/">
            
                <a href="../../1.6 服务端知识/1.6.5 服务器配置/">
            
                    
                    1.6.5 服务器配置
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.6" data-path="../../1.6 服务端知识/1.6.6 Server API/">
            
                <a href="../../1.6 服务端知识/1.6.6 Server API/">
            
                    
                    1.6.6 Server API
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.8" data-path="../">
            
                <a href="../">
            
                    
                    1.7 源码导读
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter active" data-level="1.8.1" data-path="./">
            
                <a href="./">
            
                    
                    1.7.1 客户端核心SDK
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.2" data-path="../1.7.2 社区版服务端/">
            
                <a href="../1.7.2 社区版服务端/">
            
                    
                    1.7.2 社区版服务端
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.3" data-path="../1.7.3 使用Web版SDK/">
            
                <a href="../1.7.3 使用Web版SDK/">
            
                    
                    1.7.3 使用Web版SDK
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.9" data-path="../../1.10 code错误码/">
            
                <a href="../../1.10 code错误码/">
            
                    
                    1.10 code错误码
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.10" data-path="../../1.11 技术支持/">
            
                <a href="../../1.11 技术支持/">
            
                    
                    1.11 技术支持
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11" data-path="../../1.12 管理后台/">
            
                <a href="../../1.12 管理后台/">
            
                    
                    1.12 管理后台
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12" data-path="../../1.13 常见问题/">
            
                <a href="../../1.13 常见问题/">
            
                    
                    1.13 常见问题
            
                </a>
            

            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            Published with GitBook
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href="../.." >1.7.1 客户端核心SDK</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h1 id="171-&#x5BA2;&#x6237;&#x7AEF;&#x6838;&#x5FC3;sdk">1.7.1 &#x5BA2;&#x6237;&#x7AEF;&#x6838;&#x5FC3;SDK</h1>
<p>&#x5BA2;&#x6237;&#x7AEF;&#x6838;&#x5FC3;SDK&#x5206;&#x4E3A;&#x4E24;&#x4E2A;&#x7248;&#x672C;&#xFF0C;&#x4E00;&#x4E2A;&#x662F;Web&#x7248;&#xFF0C;&#x4F7F;&#x7528;Typescript &#x8BED;&#x8A00;&#x7F16;&#x5199;&#xFF1B;&#x4E00;&#x4E2A;&#x662F;&#x539F;&#x751F;&#x7248;&#xFF0C;&#x4F7F;&#x7528;c++11 &#x8BED;&#x8A00;&#x3002;&#x4E24;&#x8005;&#x7684;&#x67B6;&#x6784;&#x8DDF;&#x4E1A;&#x52A1;&#x529F;&#x80FD;&#x662F;&#x4E00;&#x81F4;&#x7684;&#xFF0C;&#x56E0;&#x6B64;&#x53EA;&#x8981;&#x4E86;&#x89E3;&#x5176;&#x4E2D;&#x4E00;&#x7248;&#x5373;&#x53EF;&#x3002;&#x4E0B;&#x9762;&#x4EE5;Web&#x7248;(&#x6E90;&#x7801;&#x7248;&#x672C;v1.10)&#x4E3A;&#x4F8B;&#xFF0C;&#x7406;&#x89E3;&#x5BA2;&#x6237;&#x7AEF;SDK&#x7684;&#x8BBE;&#x8BA1;&#x3002;</p>
<h3 id="1&#x6E90;&#x7801;&#x67B6;&#x6784;">1.&#x6E90;&#x7801;&#x67B6;&#x6784;</h3>
<pre><code class="lang-bash">|-- echatim
|   |-- common
|   |   |-- Topic.ts <span class="hljs-comment"># &#x793E;&#x533A;&#x7248;Topic&#x7684;&#x5B9A;&#x4E49;, api&#x89C4;&#x7EA6;&#x5B9A;&#x4E49;</span>
|   |   |-- TopicProfessional.ts <span class="hljs-comment"># &#x4E13;&#x4E1A;&#x7248;Topic&#x7684;&#x5B9A;&#x4E49;, api&#x89C4;&#x7EA6;&#x5B9A;&#x4E49;</span>
|   |   |-- UUID.ts
|   |   |-- WebToolkit.ts <span class="hljs-comment"># &#x4E00;&#x4E9B;Web&#x5E38;&#x7528;&#x5DE5;&#x5177;&#x7C7B;</span>
|   |   `-- utils.ts <span class="hljs-comment"># js &#x901A;&#x7528;&#x65B9;&#x6CD5;</span>
|   |-- core
|   |   |-- apis <span class="hljs-comment"># &#x4EE5;&#x4E0B;&#x662F;http api&#x4E0E;socket.io api&#x7684;&#x63A5;&#x53E3;&#x65B9;&#x6CD5;&#x5B9A;&#x4E49;&#x4EE5;&#x53CA;&#x5B9E;&#x73B0;&#x7EC6;&#x8282;</span>
|   |   |   |-- ApiResponse.ts
|   |   |   |-- EChatIMApis.ts
|   |   |   |-- HttpApi.ts
|   |   |   |-- IApi.ts
|   |   |   |-- IHttpConfig.ts
|   |   |   `-- SocketIOApi.ts
|   |   |-- cache
|   |   |   `-- jwt.ts <span class="hljs-comment"># &#x767B;&#x5F55;&#x7528;&#x6237;&#x7684;&#x6570;&#x5B57;&#x7B7E;&#x540D;(jwt)</span>
|   |   |-- fileclient <span class="hljs-comment"># &#x6587;&#x4EF6;&#x670D;&#x52A1;&#x5668;&#x5BA2;&#x6237;&#x7AEF;&#x529F;&#x80FD;</span>
|   |   |   |-- FileServerClient.ts <span class="hljs-comment"># &#x6587;&#x4EF6;&#x670D;&#x52A1;&#x5668;&#x5BA2;&#x6237;&#x7AEF;&#x5DE5;&#x5382;</span>
|   |   |   `-- support <span class="hljs-comment"># &#x4EE5;&#x4E0B;&#x9488;&#x5BF9;&#x5404;&#x79CD;&#x4E0D;&#x540C;&#x5E73;&#x53F0;&#x7684;&#x5B9E;&#x73B0;&#x65B9;&#x5F0F;, &#x5982;Web, ReactNative, &#x5FAE;&#x4FE1;&#x5C0F;&#x7A0B;&#x5E8F;</span>
|   |   |       |-- AbstractClient.ts
|   |   |       |-- AbstractXMLHttpClient.ts
|   |   |       |-- BrowserXMLHttpClient.ts
|   |   |       |-- Fetch.ts
|   |   |       |-- PluploadClient.ts
|   |   |       |-- ReactNativeFetchClient.ts
|   |   |       |-- ReactNativeXMLHttpClient.ts
|   |   |       |-- SuffixMime.ts
|   |   |       `-- WxClient.ts
|   |   `-- sdk
|   |       |-- EChatIMSDK.ts <span class="hljs-comment"># &#x4E3B;&#x8981;sdk&#x529F;&#x80FD;</span>
|   |       |-- Errors.ts <span class="hljs-comment"># sdk &#x9519;&#x8BEF;&#x7801;</span>
|   |       |-- Socket.ts <span class="hljs-comment"># &#x5B9E;&#x73B0;&#x4E86;socket.io &#x7684;&#x4EE3;&#x7406;, &#x8FDE;&#x63A5;&#xFF0C;&#x76D1;&#x542C;&#x7B49;</span>
|   |       `-- SocketStatusManage.ts <span class="hljs-comment"># socket.io &#x8FDE;&#x63A5;&#x72B6;&#x6001;&#x7BA1;&#x7406;&#x5668;</span>
|   |-- <span class="hljs-built_in">log</span>
|   |   `-- Logger.ts  <span class="hljs-comment"># sdk&#x65E5;&#x5FD7;&#x65B9;&#x6CD5;</span>
|   `-- model <span class="hljs-comment"># sdk&#x4E2D;&#x7528;&#x5230;&#x7684;&#x6A21;&#x578B;&#x7ED3;&#x6784;</span>
|       |-- dto
          ... &#x7701;&#x7565; ...
|       |-- form
          ... &#x7701;&#x7565; ...
|       `-- protocol
          ... &#x7701;&#x7565; ...
|-- echatim.ts <span class="hljs-comment"># &#x5165;&#x53E3;&#x6587;&#x4EF6;, &#x5BF9;&#x5F15;&#x7528;&#x6A21;&#x5757;&#x5BFC;&#x51FA;EChatIMSDK&#x5B9E;&#x4F8B; </span>
`-- version.js <span class="hljs-comment"># &#x8BB0;&#x5F55;sdk&#x7684;&#x7248;&#x672C;&#x4FE1;&#x606F;</span>
</code></pre>
<h3 id="2&#x5F15;&#x7528;&#x5BA2;&#x6237;&#x7AEF;sdk">2.&#x5F15;&#x7528;&#x5BA2;&#x6237;&#x7AEF;sdk</h3>
<p>&#x5728;Web html&#x4E2D;, &#x53EA;&#x9700;&#x8981;&#x4EE5;&#x4E0B;&#x7684;&#x4E00;&#x884C;&#x4EE3;&#x7801;:</p>
<pre><code class="lang-javascript">&lt;script src=<span class="hljs-string">&quot;echatim-sdk.js&quot;</span>&gt;<span class="xml"><span class="hljs-tag">&lt;/<span class="hljs-name">script</span>&gt;</span></span>
</code></pre>
<p>&#x5373;&#x53EF;&#x5B9E;&#x73B0;&#x5F15;&#x5165;sdk, &#x8FD9;&#x4E00;&#x8FC7;&#x7A0B;&#x662F;&#x5728;echatim.ts&#x4E2D;&#x5904;&#x7406;&#x7684;:</p>
<pre><code class="lang-javascript"><span class="hljs-keyword">if</span>(<span class="hljs-keyword">typeof</span> <span class="hljs-built_in">window</span> !== <span class="hljs-string">&apos;undefined&apos;</span>){
    <span class="hljs-built_in">window</span>[<span class="hljs-string">&apos;im&apos;</span>] = echatIMSDK;
    <span class="hljs-built_in">window</span>[<span class="hljs-string">&apos;im_webtoolkit&apos;</span>] = WebToolkit;
    <span class="hljs-built_in">window</span>[<span class="hljs-string">&apos;imsdk_version&apos;</span>] = version;
}
</code></pre>
<p>&#x5728;&#x52A0;&#x8F7D;echatim-sdk.js&#x540E;,  &#x4F7F;&#x7528;window.im &#x5373;&#x53EF;&#x8BBF;&#x95EE;sdk &#x5B9E;&#x4F8B;echatIMSDK&#x3002;</p>
<h3 id="3&#x4F7F;&#x7528;&#x5BA2;&#x6237;&#x7AEF;sdk">3.&#x4F7F;&#x7528;&#x5BA2;&#x6237;&#x7AEF;sdk</h3>
<p>echatIMSDK&#x662F;&#x5355;&#x4F8B;&#x7684;&#xFF0C;&#x662F;EChatIMSDK&#x7684;&#x4E00;&#x4E2A;&#x5BF9;&#x8C61;&#x3002;&#x5728;Web Demo&#x4E2D;&#xFF0C;&#x53EF;&#x89C1;&#x4EE5;&#x4E0B;&#x4F7F;&#x7528;sdk&#x7684;&#x4EE3;&#x7801;&#x7247;&#x6BB5;: </p>
<pre><code class="lang-javascript">    <span class="hljs-keyword">var</span> im = <span class="hljs-built_in">window</span>.im;
    im.init(sdkConfig, <span class="hljs-function"><span class="hljs-keyword">function</span> (<span class="hljs-params">sdk</span>) </span>{
        <span class="hljs-keyword">if</span> (sdk) {
            <span class="hljs-built_in">console</span>.info(<span class="hljs-string">&apos;echatIMSDK &#x6210;&#x529F;&#x8FDE;&#x63A5;, &#x53EF;&#x4EE5;&#x4F7F;&#x7528; EChatIMApis &#x8BF7;&#x6C42;&#x6570;&#x636E;&#x4E86;.&apos;</span>);
        } <span class="hljs-keyword">else</span> {
            <span class="hljs-keyword">throw</span> <span class="hljs-built_in">Error</span>(<span class="hljs-string">&quot;echatIMSDK &#x521D;&#x59CB;&#x5316;&#x5931;&#x8D25;&quot;</span>);
        }
    });
</code></pre>
<p>&#x521D;&#x59CB;&#x5316;&#x65F6;&#x8C03;&#x7528;&#x4E86;echatIMSDK.init &#x65B9;&#x6CD5;, &#x6765;&#x770B;&#x770B;echatIMSDK.init &#x65B9;&#x6CD5;&#x4E2D;&#x505A;&#x4E86;&#x4EC0;&#x4E48;&#x4E8B;&#x60C5;:</p>
<pre><code class="lang-javascript">init(config:EChatIMSDKConfig, callback: (sdk:EChatIMSDK) =&gt; <span class="hljs-keyword">void</span>): EChatIMSDK {
        <span class="hljs-keyword">const</span> self = <span class="hljs-keyword">this</span>;
        <span class="hljs-comment">// 1. &#x4FDD;&#x5B58;&#x914D;&#x7F6E;&#x4FE1;&#x606F;</span>
        self.config.host = config.host ? config.host : <span class="hljs-string">&apos;localhost&apos;</span>;
        self.config.socketPort = config.socketPort ? config.socketPort : <span class="hljs-number">80</span>;
        self.config.httpPort = config.httpPort ? config.httpPort : <span class="hljs-number">80</span>;
        self.transport = config.apiTransport ? config.apiTransport : <span class="hljs-string">&apos;HTTP&apos;</span>;
        self.config.key = config.key;
        self.config.secret = config.secret;
        self.config.loginToken = config.loginToken;
        self.config.loginAuid = config.loginAuid;
        self.config.listeners = config.listeners;
        self.config.fileServerConfig = config.fileServerConfig;
        <span class="hljs-keyword">if</span>(config.autoLogin !== <span class="hljs-literal">undefined</span>){
            self.config.autoLogin = config.autoLogin;
        }
        Logger.info(<span class="hljs-string">`ready to connect:<span class="hljs-subst">${&apos;http://&apos; + self.config.host + &apos;:&apos; + self.config.socketPort}</span>`</span>);
        <span class="hljs-comment">// 2. &#x5F00;&#x542F;socket.io &#x8FDE;&#x63A5;</span>
        socket.connect(<span class="hljs-string">&apos;http://&apos;</span> + self.config.host + <span class="hljs-string">&apos;:&apos;</span> + self.config.socketPort);
        <span class="hljs-keyword">if</span>(!firstMonitorSocket){
            firstMonitorSocket = <span class="hljs-literal">true</span>;
            <span class="hljs-comment">// &#x52A0;&#x5165;socket&#x8FDE;&#x63A5;&#x4E8B;&#x4EF6;&#x76D1;&#x542C;(&#x53EF;&#x9009;)</span>
            <span class="hljs-keyword">if</span>(<span class="hljs-keyword">typeof</span> self.config.listeners.onSocketConnectEvent === <span class="hljs-string">&apos;function&apos;</span>){
                <span class="hljs-keyword">const</span> socketManage = <span class="hljs-keyword">new</span> SocketStatusManage(socket[<span class="hljs-string">&apos;socket&apos;</span>]);
                socketManage.addListener((status, data)=&gt;{
                    self.config.listeners.onSocketConnectEvent(status, data);
                })
            }
        }
        <span class="hljs-comment">// 3. &#x76D1;&#x542C;socket.io connect&#x4E8B;&#x4EF6;</span>
        socket.listen(<span class="hljs-string">&apos;connect&apos;</span>, <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">msg: any</span>) </span>{
            Logger.info(<span class="hljs-string">&apos;apiSocket.io connected!&apos;</span>);
            self.socketConnected = <span class="hljs-literal">true</span>;
            <span class="hljs-keyword">if</span>(!firstInit &amp;&amp; !self.config.autoLogin){
                callback(self);
                firstInit = <span class="hljs-literal">true</span>;
            }
            <span class="hljs-comment">// &#x8FDE;&#x63A5;&#x65F6;&#x81EA;&#x52A8;&#x767B;&#x5F55;</span>
            <span class="hljs-keyword">if</span>(self.config.autoLogin){
                self.autoLogin(<span class="hljs-function"><span class="hljs-keyword">function</span> (<span class="hljs-params"></span>) </span>{
                    self.logined = <span class="hljs-literal">true</span>;
                    callback(self); <span class="hljs-comment">// &#x4EC5;&#x7528;&#x6237;&#x767B;&#x5F55;&#x6210;&#x529F;&#x65F6;, &#x521D;&#x59CB;&#x5316;&#x624D;&#x5B8C;&#x6210;.</span>
                    <span class="hljs-keyword">if</span>(self.config.listeners){
                        self.initConfigSocketioMessageListener();
                        self.initConfigImListener();
                    }
                });
            }
            <span class="hljs-comment">// sdk &#x521D;&#x59CB;&#x5316;&#x65F6;&#x4E0D;&#x81EA;&#x52A8;&#x767B;&#x5F55;, &#x9700;&#x8981;&#x5916;&#x90E8;&#x5E94;&#x7528;&#x81EA;&#x884C;&#x7BA1;&#x7406;&#x7528;&#x6237;&#x7684;&#x767B;&#x5F55;&#x72B6;&#x6001;.</span>
            <span class="hljs-keyword">else</span> {
                <span class="hljs-comment">// &#x4EC5;&#x521D;&#x59CB;&#x5316;socketio &#x76F8;&#x5173;&#x7684;&#x6D88;&#x606F;&#x76D1;&#x542C;&#x5373;&#x53EF;</span>
                self.initConfigSocketioMessageListener();
            }
            <span class="hljs-keyword">if</span>(self.config.listeners &amp;&amp; <span class="hljs-keyword">typeof</span> self.config.listeners.onConnected === <span class="hljs-string">&apos;function&apos;</span>){
                self.config.listeners.onConnected();
            }
        });
       <span class="hljs-comment">// 3. &#x76D1;&#x542C;socket.io disconnect&#x4E8B;&#x4EF6;</span>
        socket.listen(<span class="hljs-string">&apos;disconnect&apos;</span>, <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">msg: any</span>) </span>{
            Logger.info(<span class="hljs-string">&apos;apiSocket.io disconnected!&apos;</span>);
            self.socketConnected = <span class="hljs-literal">false</span>;
            self.logined = <span class="hljs-literal">false</span>;
            <span class="hljs-keyword">if</span>(self.config.listeners &amp;&amp; <span class="hljs-keyword">typeof</span> self.config.listeners.onDisConnected === <span class="hljs-string">&apos;function&apos;</span>){
                self.config.listeners.onDisConnected();
            }
        });


        <span class="hljs-keyword">return</span> <span class="hljs-keyword">this</span>;
    }
</code></pre>
<p>&#x5728;echatIMSDK.init &#x65B9;&#x6CD5;&#x4E2D;&#xFF0C;&#x4E3B;&#x8981;&#x505A;&#x4E86;&#x4E09;&#x4EF6;&#x4E8B;&#x60C5;:</p>
<blockquote>
<ol>
<li>&#x4FDD;&#x5B58;&#x914D;&#x7F6E;&#x4FE1;&#x606F;&#x5230;sdk&#x4E2D;;</li>
<li>&#x5F00;&#x542F;socket.io &#x7684;&#x8FDE;&#x63A5;;</li>
<li>&#x76D1;&#x542C;socket.io &#x7684;connect, disconnect&#x4E8B;&#x4EF6;;</li>
</ol>
</blockquote>
<p>socket.io &#x7684;&#x8FDE;&#x63A5;&#x6210;&#x529F;&#x7684;&#x4E8B;&#x4EF6;&#x76D1;&#x542C;&#x4E2D;&#xFF0C;sdk&#x8FD8;&#x5904;&#x7406;&#x4E86;&#x7528;&#x6237;&#x7684;&#x81EA;&#x52A8;&#x767B;&#x5F55;(&#x5B9E;&#x73B0;&#x7528;&#x6237;&#x8EAB;&#x4EFD;&#x4E0E;socket.io&#x901A;&#x9053;&#x7684;&#x7ED1;&#x5B9A;)&#xFF1B; &#x81EA;&#x52A8;&#x8BF7;&#x6C42;&#x90E8;&#x5206;api, &#x5982;: &#x83B7;&#x53D6;&#x597D;&#x53CB;&#x5217;&#x8868;&#xFF0C;&#x83B7;&#x53D6;&#x4F1A;&#x8BDD;&#x5217;&#x8868;&#x7B49;&#xFF0C;&#x8BF7;&#x6C42;&#x7ED3;&#x679C;&#x901A;&#x8FC7;&#x56DE;&#x8C03;&#x51FD;&#x6570;&#x8FD4;&#x56DE;&#x7ED9;&#x5E94;&#x7528;&#x5C42;&#x3002;</p>
<h3 id="4&#x6587;&#x4EF6;&#x670D;&#x52A1;&#x5668;&#x5BA2;&#x6237;&#x7AEF;">4.&#x6587;&#x4EF6;&#x670D;&#x52A1;&#x5668;&#x5BA2;&#x6237;&#x7AEF;</h3>
<p>&#x5728;echatIMSDK &#x4E2D;&#xFF0C;&#x5B9E;&#x73B0;&#x4E86;newFileClient&#x65B9;&#x6CD5;&#xFF0C;&#x901A;&#x8FC7;&#x8BE5;&#x65B9;&#x6CD5;&#x53EF;&#x4EE5;&#x5B9E;&#x4F8B;&#x5316;&#x4E00;&#x4E2A;&#x6587;&#x4EF6;&#x4E0A;&#x4F20;&#x5B9E;&#x4F8B;&#x3002;</p>
<pre><code class="lang-javascript">    public newFileClient():IFileServerClient {
        <span class="hljs-comment">// &#x6839;&#x636E;sdk&#x4F20;&#x5165;&#x7684;&#x914D;&#x7F6E;&#x4FE1;&#x606F;&#xFF0C;&#x8C03;&#x7528;&#x5DE5;&#x5382;&#x65B9;&#x6CD5;&#xFF0C;&#x521B;&#x5EFA;&#x5BF9;&#x5E94;&#x7684;&#x5BA2;&#x6237;&#x7AEF;</span>
        <span class="hljs-keyword">if</span>(<span class="hljs-keyword">this</span>.config.fileServerConfig){
            <span class="hljs-keyword">return</span> FileServerClientFactory.create(<span class="hljs-keyword">this</span>.config.fileServerConfig, <span class="hljs-keyword">this</span>.config.key);
        }
        <span class="hljs-keyword">else</span> {
            <span class="hljs-keyword">throw</span> <span class="hljs-keyword">new</span> <span class="hljs-built_in">Error</span>(<span class="hljs-string">&apos;&#x6CA1;&#x6709;fileServerConfig&#x914D;&#x7F6E;, &#x65E0;&#x6CD5;&#x521B;&#x5EFA;file client &#x5B9E;&#x4F8B;&apos;</span>);
        }
    }
</code></pre>
<p>&#x5728;&#x4E1A;&#x52A1;&#x7CFB;&#x7EDF;&#x4E2D;&#xFF0C;&#x6709;&#x4E24;&#x79CD;&#x65B9;&#x5F0F;&#x4F7F;&#x7528;&#x8BE5;&#x6587;&#x4EF6;&#x4E0A;&#x4F20;&#x529F;&#x80FD;:</p>
<pre><code class="lang-javascript"><span class="hljs-comment">// &#x65B9;&#x5F0F;&#x4E00;: &#x76F4;&#x63A5;&#x7ED1;&#x5B9A;&#x5230;&#x4E00;&#x4E2A;dom&#x8282;&#x70B9;, &#x9002;&#x7528;&#x4E8E;Web&#x7248;</span>
html:
<span class="xml"><span class="hljs-tag">&lt;<span class="hljs-name">button</span> <span class="hljs-attr">id</span>=<span class="hljs-string">&quot;sendFileMessage&quot;</span> /&gt;</span>
js:    
window.im.newFileClient().init({
            domId:domId, // &#x7ED1;&#x5B9A;&#x7684;dom&#x8282;&#x70B9;
            maxFileSize: 100,// &#x6587;&#x4EF6;&#x5927;&#x5C0F;&#x4E0A;&#x9650;. 100mb
            type:&apos;FILE&apos;,
            allowSuffix:[]// &#x5141;&#x8BB8;&#x4E0A;&#x4F20;&#x7684;&#x6587;&#x4EF6;&#x540E;&#x7F00;&#x540D;
        },{
            beforeUploadCallback:function (fileInfo) {
                return fileInfo;// 1.&#x53EF;&#x4EE5;&#x81EA;&#x5B9A;&#x4E49;fileInfo&#x5185;&#x5BB9;; 2.&#x8FD4;&#x56DE;&apos;cancel&apos;&#x65F6;&#x53EF;&#x4EE5;&#x53D6;&#x6D88;&#x4E0A;&#x4F20;; 
            },
            progressCallback:function (fileInfo) {

            },
            uploadedCallback:function (fileInfo) {

            },
            errorCallback:function (fileInfo, errInfo) {

            },
        });


// &#x65B9;&#x5F0F;&#x4E8C;: &#x4F7F;&#x7528;&#x8FD4;&#x56DE;&#x7684;IFileServerClient&#x5B9E;&#x4F8B;, &#x624B;&#x52A8;&#x8C03;&#x7528;upload&#x65B9;&#x6CD5;
// 1.&#x521B;&#x5EFA;&#x5B9E;&#x4F8B;
this.fileClient = im.newFileClient();
// 2.&#x521D;&#x59CB;&#x5316;&#x5B9E;&#x4F8B;
this.fileClient.init({
            maxFileSize: 100,// &#x6587;&#x4EF6;&#x5927;&#x5C0F;&#x4E0A;&#x9650;. 100mb
            type:&apos;FILE&apos;,
            allowSuffix:[]// &#x5141;&#x8BB8;&#x4E0A;&#x4F20;&#x7684;&#x6587;&#x4EF6;&#x540E;&#x7F00;&#x540D;
        },{
            beforeUploadCallback:function (fileInfo) {
                return fileInfo;// 1.&#x53EF;&#x4EE5;&#x81EA;&#x5B9A;&#x4E49;fileInfo&#x5185;&#x5BB9;; 2.&#x8FD4;&#x56DE;&apos;cancel&apos;&#x65F6;&#x53EF;&#x4EE5;&#x53D6;&#x6D88;&#x4E0A;&#x4F20;; 
            },
            progressCallback:function (fileInfo) {

            },
            uploadedCallback:function (fileInfo) {

            },
            errorCallback:function (fileInfo, errInfo) {

            },
        });
// 3.&#x624B;&#x52A8;&#x4E0A;&#x4F20;
this.fileClient.upload(filePath);// filePath: &#x6587;&#x4EF6;&#x7684;&#x7269;&#x7406;&#x8DEF;&#x5F84;
</span></code></pre>
<h3 id="5&#x62D3;&#x5C55;&#x73B0;&#x6709;&#x7684;api">5.&#x62D3;&#x5C55;&#x73B0;&#x6709;&#x7684;api</h3>
<p>&#x5728;Web&#x7248;&#x6E90;&#x7801;v1.10&#x540E;&#xFF0C;echatIMSDK&#x63D0;&#x4F9B;&#x4E86;httpApiCall, socketioApiCall &#x4E24;&#x4E2A;&#x9AD8;&#x7EA7;&#x65B9;&#x6CD5;&#xFF0C;&#x53EF;&#x7528;&#x4E8E;http api &#x548C;socket.io &#x7684;API&#x62D3;&#x5C55;&#x3002;</p>
<h4 id="51-&#x76F8;&#x5173;&#x6E90;&#x7801;">5.1 &#x76F8;&#x5173;&#x6E90;&#x7801;</h4>
<pre><code class="lang-javascript">    <span class="hljs-comment">// http&#x5E38;&#x89C4;&#x8C03;&#x7528;&#x63A5;&#x53E3;, &#x4F7F;&#x7528;http POST&#x65B9;&#x5F0F;&#x8BBF;&#x95EE;&#x540E;&#x53F0;api</span>
    <span class="hljs-comment">// url: &#x8BF7;&#x6C42;&#x5B8C;&#x6574;&#x8DEF;&#x5F84;; headers: &#x8BF7;&#x6C42;&#x5934;, json&#x683C;&#x5F0F;; body: &#x8BF7;&#x6C42;&#x4F53;, json&#x683C;&#x5F0F;</span>
    public httpApiCall(url:string, headers:any, body: any): <span class="hljs-built_in">Promise</span>&lt;ApiResponse&lt;any&gt;&gt; {
        <span class="hljs-keyword">const</span> api = <span class="hljs-keyword">new</span> HttpApi&lt;any, any&gt;(url, <span class="hljs-string">&quot;&#x901A;&#x7528;http api&quot;</span>);
        <span class="hljs-keyword">return</span> api.rawCall(headers, body);
    }
    <span class="hljs-comment">// socket.io&#x5E38;&#x89C4;&#x8C03;&#x7528;&#x63A5;&#x53E3;, &#x4F7F;&#x7528;socket.io&#x65B9;&#x5F0F;&#x8BBF;&#x95EE;&#x540E;&#x53F0;api</span>
    <span class="hljs-comment">// url: &#x8BF7;&#x6C42;&#x5B8C;&#x6574;&#x8DEF;&#x5F84;; body: &#x8BF7;&#x6C42;&#x4F53;, json&#x683C;&#x5F0F;</span>
    public socketioApiCall(url:string, body: any): <span class="hljs-built_in">Promise</span>&lt;ApiResponse&lt;any&gt;&gt; {
        <span class="hljs-keyword">const</span> api = <span class="hljs-keyword">new</span> SocketIOApi&lt;any, any&gt;(url, <span class="hljs-string">&quot;&#x901A;&#x7528;socket.io api&quot;</span>);
        <span class="hljs-keyword">return</span> api.rawCall(body);
    }
</code></pre>
<h4 id="52-&#x4E00;&#x4E2A;&#x4F8B;&#x5B50;">5.2 &#x4E00;&#x4E2A;&#x4F8B;&#x5B50;</h4>
<pre><code class="lang-javascript">    <span class="hljs-comment">// http api &#x4F8B;&#x5B50;</span>
    <span class="hljs-keyword">const</span> httpcall = <span class="hljs-built_in">window</span>.im.httpApiCall.bind(<span class="hljs-built_in">window</span>.im);
    <span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">httpFetch</span>(<span class="hljs-params">url, request</span>) </span>{
      <span class="hljs-keyword">return</span> httpcall(url, request.headers, request.body)
    }
    <span class="hljs-comment">// &#x4F7F;&#x7528;: &#x5B9A;&#x4E49;header, body</span>
    <span class="hljs-keyword">const</span> headers = {
      <span class="hljs-string">&apos;Content-Type&apos;</span>: <span class="hljs-string">&apos;application/json&apos;</span>,
      <span class="hljs-string">&apos;Request-Id&apos;</span>: <span class="hljs-keyword">new</span> <span class="hljs-built_in">Date</span>().getTime() + <span class="hljs-string">&apos;&apos;</span> + <span class="hljs-built_in">parseInt</span>(<span class="hljs-built_in">Math</span>.random() * <span class="hljs-number">1000</span> + <span class="hljs-string">&apos;&apos;</span>),
      <span class="hljs-string">&apos;timestamp&apos;</span>: <span class="hljs-keyword">new</span> <span class="hljs-built_in">Date</span>().getTime(),
    };
    <span class="hljs-keyword">if</span> (needAuth) {
      headers.authorization = <span class="hljs-string">&apos;client &apos;</span> + jwt;
    }
    <span class="hljs-keyword">const</span> params = {};
    <span class="hljs-keyword">const</span> request = {headers: headers, body: params};
    httpFetch(url, request);
</code></pre>
<pre><code class="lang-javascript">    <span class="hljs-comment">// socket api &#x4F8B;&#x5B50;</span>
    <span class="hljs-keyword">const</span> socketcall = <span class="hljs-built_in">window</span>.im.socketioApiCall.bind(<span class="hljs-built_in">window</span>.im);
    <span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">socketFetch</span>(<span class="hljs-params">url, body</span>) </span>{
      <span class="hljs-keyword">return</span> socketcall(url, body)
    }
   <span class="hljs-comment">// &#x4F7F;&#x7528;: socketFetch(&apos;topic.&#x4F60;&#x7684;TOPIC&#x5B9A;&#x4E49;&apos; + &apos;/&apos; + &apos;&#x4F60;&#x7684;&#x65B9;&#x6CD5;&#x540D;&apos;, {})</span>
</code></pre>

                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="../" class="navigation navigation-prev " aria-label="Previous page: 1.7 源码导读">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="../1.7.2 社区版服务端/" class="navigation navigation-next " aria-label="Next page: 1.7.2 社区版服务端">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"1.7.1 客户端核心SDK","level":"1.8.1","depth":2,"next":{"title":"1.7.2 社区版服务端","level":"1.8.2","depth":2,"path":"1.7 源码导读/1.7.2 社区版服务端/README.md","ref":"1.7 源码导读/1.7.2 社区版服务端/README.md","articles":[]},"previous":{"title":"1.7 源码导读","level":"1.8","depth":1,"path":"1.7 源码导读/README.md","ref":"1.7 源码导读/README.md","articles":[{"title":"1.7.1 客户端核心SDK","level":"1.8.1","depth":2,"path":"1.7 源码导读/1.7.1 客户端核心SDK/README.md","ref":"1.7 源码导读/1.7.1 客户端核心SDK/README.md","articles":[]},{"title":"1.7.2 社区版服务端","level":"1.8.2","depth":2,"path":"1.7 源码导读/1.7.2 社区版服务端/README.md","ref":"1.7 源码导读/1.7.2 社区版服务端/README.md","articles":[]},{"title":"1.7.3 使用Web版SDK","level":"1.8.3","depth":2,"path":"1.7 源码导读/1.7.3 使用Web版SDK/README.md","ref":"1.7 源码导读/1.7.3 使用Web版SDK/README.md","articles":[]}]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["livereload"],"pluginsConfig":{"livereload":{},"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"1.7 源码导读/1.7.1 客户端核心SDK/README.md","mtime":"2021-08-04T03:46:07.706Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2021-11-19T07:54:02.646Z"},"basePath":"../..","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="../../gitbook/gitbook.js"></script>
    <script src="../../gitbook/theme.js"></script>
    
        
        <script src="../../gitbook/gitbook-plugin-livereload/plugin.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

